package com.csdj.t301.cloud.mapper;

import com.csdj.t301.cloud.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * author:cloud
 * date:2021/2/21 0021
 **/
public interface UserMapper {

    int add(User user);

    User findById(int id);

    User findByUserNameAndId(@Param("username")String userName,@Param("id")Integer id);

    List<User> findAllUsers();

    int update(User user);
}
